swig compilation of interfaces aligned with libraries (take 1)

TODO: link compiled swig only against the appropriate libraries