Fix compilation with newer MinGW-w64 versions