fix winsock-related compile error on gcc 4.8.2