Update CMakeLists to create shared library