Add libevent compilation