MSVC fixes

Works fine on linux though!

* Use NULL_event instead of zero 
* MSVC doesn't like int assignment to event_t