Use Bas Wijnen's fix for MinGW problem