The statement `#include <pthread.h>` must be appended to the files `generator.c` and `state.h` in order to compile on Mac OS X.