Add alternate implementation of waitpid() for systems that have wait4 but