Lot of fixes for POSIX implementation of ChildProcess