Fix misc. variable errors in main CMakeLists.txt.