avoid opening header twice
use ac_search_libs, add pkg_config_path to default search