glog/gflags/gtest are copied from chen3feng/thirdparty