fixed detecting libevent v1 if libevent v2 is not available