Work around missing sockaddr_dl on linux
Fix destination duplication test

Since the port will be added to the address regardless of name
resolution the address must be duped to prevent modification of the
address.