fix for mingw