Add support for SWIG2_CSHARP macro to create SWIG 2 backwards compatability mode.