Turn glad into a shared library