Fix for mingw compiler