posix build fixes for named pipes