fixing swig/Makefile and swig/snap.i