fixed check for libev