Stat() port to win