invoke methods, not functions (allow overriding)
introduce check_prog_pkg_config