Posix build system fixes