Avoid boost and glog dependencies in cppinterface.cc