Fixed compilation in case no protobuf lib is available/ no logging is desired.