Build as a shared library