lib: make compatible with zone's EventEmitter