Fix up calls to socket(2) functions, so that socklen_t use is properly respected.