mingw-w64: fix build