f3411616 introduced a dependence (for builds with LLVM_ENABLE_THREADS) on pthreads. This commit updates the CMakeLists.txt file to include a LINK_LIBS entry for pthreads.