Included pthread.h header

Wouldn't compile without it