Socket functionality for WindowsPoller

Current state of the Windows port: all tests in common/ pass
I'd add a using std::vector and drop the std:: from here.