unset pkg_failed before invoking pkg-config tests to prevent false-negatives