build: do a PKG_CHECK_MODULES() before fallback checks.
build: wrap SSL check in PKG_CHECK_MODULES.