added libraries for wait. Changed perror so const char + const char* does not happen
added libraries for wait. Changed perror so const char + const char*
does not happen

rchui/ptgz,rchui/ptgz,rchui/ptgz