Added include to ex.c.

<sys/wait.h> is needed for WIFEXITED and WEXITSTATUS macros.

Thanks Leonardo Taccari for this patch.