posix build fixes