Fix EventEmitter inheritance

The previous method meant that properties were written directly
on to the EventEmitter prototype, which was bad for other modules
that used EventEmitters.
0.0.6