improve shared library installation