Add libevent support