Attempt to generalize CMakeLists.txt for libcxxrt.