fix paths and introduce exceptions in SWIG and android yap