Use OS openssl/curl if available

Use the Operating system's versions of both openssl and curl if both are available and curl was compiled with OpenSSL support.