shared library fix