add libevent single thread c++ wrapper