Add alternative CMake build file which includes -lpthreads.
Fixes link step of the test/benchmarking utilities on some platforms.