Allow to inject Swig instance.