shared_ptr support for swig