Fix build and add core.swig