Fix zevents' onexit as well, clean up old #ifdef APPLEs.