Hack to work around problem with winsock.h

It looks like the Poco headers are trying to include both winsock.h and
winsock2.h (possibly because windows.h includes winsock.h by default).
Even if this works (and I won't know until I push it into the develop
branch), it's still a lousy solution.

Refs #7769
Merge branch 'feature/7769_NewRemoteAPI' into develop