fix for mingw 4.7