Add gflags to dependencies of ceres lib