Undef stat for Mingw

As part of #2471 (https://github.com/jacquesg/libgit2/commit/2f795d8fc50d81641d95723d9ddd92795886bed3#diff-3)  I introduces a minor regression in terms of compiler warnings. ```stat``` should be ```undef```ed  before (possibly) redefining it.