Fix SSL_METHOD* const mismatch on OpenSSL < 1.0.0