make it build on mingw32