build script for mingw