Windows testing fixes
stat has no st_flags on Windows (maybe elsewhere?)