Added lib for this method.

#include <sys/wait.h>