Build as a shared library for testing purposes.