Rename functions to avoid conflict with sys/wait.h