Add swig to build blockcanvas.