Generate shared library and fix typo