Fix problem with newer MinGW runtimes