stat has no st_flags on Windows (maybe elsewhere?)