build: manually check for openssl.

This should allow us to drop pkg-config support now, which has been
less than useful on exotic platforms.