Update CMakeLists.txt to fix nbody build issue