adapt modules to libevents v2, run tests OK