fix ex_stat compilation on Windows
Merge pull request #1412 from markbenvenuto/ex_stat

Fix ex_stat compilation on Windows