make Emitter work with define/require if present.