mingw compile fix (nw)