add rusage support to pcntl_wait() and pcntl_waitpid()

patch by Anton Stepanenko