Fix shared library issue