Hopefully fixed mingw32 build