Fixing a few issues in case you *cough* have a different local implementation of protobuf, gtest and gflags for some weird reason.