CMake library generation

CMake can build the shared library for jtoxcore now.