cmake HAS_PTHREAD examples

loentar/ngrest CMakeLists.txt :50

check_library_exists(pthread pthread_create "" HAS_PTHREAD)