Drop libevent and use our own event handling again.