This is also how pkg-config is called with configure.ac for mingw32, darwin and os2.
Reconfiguration should also be easier without needing the environment created by build.sh.