In particular, fixes Cygwin build where socklen_t is defined as int in line with native win32 api definition.