Include <pthread.h> before we use pthread_self/pthread_kill