use -mwindows on mingw