fix for mingw4.8