Adding static and shared library generation code.