Fixed macosx ifdef in ProtobufFile
Merge pull request #2621 from lisitsyn/fix/protobuf-macosx

Fixed macosx ifdef in ProtobufFile