for OS X support

Please add 

#include <sys/types.h>

at the beginning of  jhlib/JHLib.h, in non-windows section.

pthread_mutex_t source type define is in sys/types.h.