[Bug 54263] Build of 7.22 fails with mingw-w64 10.0 (multiple symbol redefinitions)