Use pkg_check_modules rather than macro_optional_find_package, so no warning is displayed by cmake.