Default to, but don't require, libev

Some of our test systems don't have internet access, and it's a pain
to install libev. I don't really see any dependency on it in the
library, so made it optional.