Add WSAPoller, and correct some bugs