Fix ex_stat compilation on Windows

Fix ex_stat compilation on Windows