support build on mingw