Fix benchmark warning when libev is not available
Fix flake8 warning about global var usage