fix libevent2 detection