Investigate the use of "wait.h" and "sys/wait.h" depending on platform.
