mingw build fixed.