Cleaned up CMakeLsts.txt; Fixed all 'taking the address of a temporary object' errors