Added shared library support.