Instead, as the very first include of the file, include platform/basic.h. That will pull in the winsock header in the correct way.