fix a warning for socklen_t