Undef stat first
Merge pull request #2784 from jacquesg/undef-stat

Undef stat for Mingw