Handle benchmark like other subprojects by not calling
cmake_minimum_required(), project(), and cmake_policy() when
building in-tree.
Also add a new function, benchmark_add_library() that calls add_library()
by default, and llvm_add_library() when available.
This gets rid of an rpath warning on MacOS when compiled with
BUILD_SHARED_LIBS=ON.
Thanks to @lebedev.ri for suggesting how to conditionally wrap add_library().
As discussed in IRC with @beanz, is this really about project(), or CMake policies cmake_minimum_required() ?