Avoid having the value of the PKG_CONFIG environment variable at build time being built into the go compiler. Fixes #3505.