Use AC_CHECK_LIB for ssl and crypto