Detect presence of OpenSSL library and build accordingly