Fix pkg-config integration.
Add OpenSSL tests.