Add CMakeLists + try to build shared event library.