fix build on older OpenSSL