More POSIX fixes