libevents: if_events changed to events v2