libev contains an libevent compat header file that at least on Debian
is only installed optionally. Make sure event.h and the event library
match since their respective struct event definitions don't match.
Signed-off-by: Patrick McHardy <kaber@trash.net>