CMake: Configure: Cherry-pick more documentation and misc config vars from cmake-rdb branch.