Add Windows MingW support for build script.