make event emitter safe to use without a `process`

the second commits just for fun feel free to ignore it :)