fix socklen_t warning