Rework CMake to the library's form.
Fix CMake.
Fix the calls.
Turn off TCMalloc by default.