Generate shared library for linux