Can be done as define on compilation line
gflags (code.google.com/p/google-gflags) added support for specifying a version string in r47. That should make this issue easier to resolve, once it's released.