changed protobuf compile to cmake option