fix hasktags.c, waitpid