try to fix some build on windows/mingw