hang on a minute
-rpath and some tidying
well i learned something about linking shared libraries