Use struct stat on MSVC, get rid of warning

There's only one warning when building libgit2 on MSVC (x86) and it's driving me crazy.