Fix some things in preparation for a merge into head.
Get rid of SPDX-License-Identifier for now.
Use a second ssize_t variable to avoid a "signed vs unsigned" warning for
powerpc.
Copy ai_addr into a struct sockaddr_in, since mips warns that the alignment
requirements for "struct sockaddr" is different than "struct sockaddr_in".