Prepend PKG_CONFIG_PATH in when_build_dependency.

This helps avoiding accidents where we accidentally use
a system package despite specifying a local package.