Only call ioctlsocket() on Windows.