yet another mingw/win fix