Include necessary headers (for bool in particular)

 - Need <stdbool.h> for bool use in C99
 - Need <unistd.h> for close(2), dup2(2)