support mingw 4.8.2
-mwindows workaround