Add check for libevent, remove check for check