Include pthread.h to help fix compile errors on other platforms