Fun with libevent