Revert "s3: fix build on systems with struct stat member st_flags"