modify for windows mingw
for windows