Update CMakeLists, Fix compile error