added shared library option