Add shared library generation.