Switch to building a shared library rather than static