Allow building with gcc-14 + enable SSL certificate validation
Suggested d/changelog:
* Allow building with gcc-14. (Closes: #1075169)
* Enable SSL certificate validation. (Closes: #993592)
All these changes are from upstream. It builds (which the current package doesn't), but has not been tested beyond that.
In the longer term it would probably be a good idea to move to a more recent upstream version, but since that is a compatibility break I have not attempted it.