Only define waitpid replacement if wait4 is available. (It isn't on