build system fixes

  * soname
  * shared lib links