adapt to swig 1.0.0-rc2