Fix build for MinGW
Untested, sorry, but it likely fixes the issue from the bug report
BUG: 379454 FIXED-IN: 5.1.1