Fix build with mingw-w64