Fix compatibility with OpenSSL 1.0.2