Get cmake to build a shared library