add rusage support to pcntl_wait() and pcntl_waitpid()

patch by Anton Stepanenko
I'd have merged this "if" cond with the one above