Use bitflags methods for file permissions (std::io::FilePermission is a bitflags type now)