C# PubNub 3.5: Copied core file to avoid conflict