Fix compilation with old MinGW toolchains