Fixed CMakeLists.txt to make shared lib