Fix mingw-w64 build