protobuf-c without global vars