Event loop and watchers based on libev.