added the <sys/wait.h> header