Eliminate unintentional recursion for MinGW as well.

This bug leads to mysterious failure with passing tests, among other problems.