Can build with or without g2o.
Made cholmod optional in g2o-solver.