added pthread config in CMake and config.h.in