Process.{wait,waitpid,waitpid2}

Should be preceded by merging #418.