fixed mingw build