fixed configure test for libevent 1.x on RHEL/CentOS