sovle the problem on mingw