Windows implementation of auto_reset_event using CreateEvent
Fix Windows compile