Resolve seg fault during swig build.