libevent c++ wrapper