fix waitpid binding