mingw64 support. mingw32 hasn't been tested