Add multiplatform compatibility because Linux doesn't have 'sin6_len'