Include sys/wait.h on FreeBSD to get the WEXITSTATUS() macro.