added process_events, inter-thread message passing now available for windows