Generating shared library