Fedora 26 and Debian 9 have both GCC 7 and OpenSSL 1.1. These fixes add support for the newer versions of these libraries.
May require reconfiguring the build. Some "gw":s are still remaining, at least in test files.