Updated the oSSL function checks
This should work properly when a system has pkg-config with some very non-standard oSSL settings.
It still should work if not using pkg-config, by doing the search for the lib ssl and lib crypto.