Event emitter in C with an API modeled after Node's EventEmitter using libuv