+ add <string> before it is used;
+ rework PollAsynchronousEvents's use of timeout to be generic and cross-platform.