add mingw support