fixed pthread.h include only if not using SWIG