lib: fix interaction with OpenSSL