For Windows, use _stat rather than stat