openssl: fix building with openssl 1.1 and later