Patches to SWIG