CMake: Added cmakedefine for HAVE_PTHREAD_H.