Fixed checking for libcrypto and libssl