o: fix compilation and regenerate swig files with swig2