porting poll to windows