Conditionally compile gflag dependencies. Add data_fitting.cc to the cmake file. Based on a patch by Casey Goodlett. Change-Id: Iab17ae91e6fe26b3e01d430154e2f5cdbc1abca5