Check for pkg-config and use that for openssl libraries, if it's available