some fixes
fixes
make protobuf sources conditional