Use NULL_event instead of zero, MSVC doesn't like int assignment to event_t