Fix the Event queue on Windows