turns out that glog does not compile with gflags 2.1 - compiling glog first and then gflags.