Get the unittests compiling when building with cmake and the setting
-DLLVM_ENABLE_THREADS=false.