add with libev optional

Signed-off-by: xiehuc <xiehuc@gmail.com>