some mingw related tweaks to the build-environment.