More POSIX support - added flag chaining and single flag assignment