Include syswait.h instead of sys/types.h.