Fix build and add core.swig
Add qstring to swig