Move set_sockaddr_port to libutil.