Updated CMakeLists.txt for proper library creation.