add protobuf feature to p2-profile-gen