Add support AnyEvent version 5