fix: do not call setup_event_handlers() on WIN32

If we put setup_event_handlers() in #ifdef WIN32, we have to do it for
the call and the declaration, too
added handling of a PID file