Changed include for wait.h to sys/wait.h to compile on OSX