patch ceres sources for gflags linking, correct