Fix FTBFS with GCC 15
Use Fedora's patches to conform with C23, and therefore build from source with GCC 15.
Patches are kept separate so that they are hopefully easier to maintain in the long run, as they are more self-contained this way. A short description has also been written to better contextualize the changes, since the original patches had no context at all.
Closes: #1097912