fix shared library dependencies