make the shared library optional