fix for mingw-gcc