added a switch for disabling all ceres related stuff (see CMakeLists.txt)