Avoid a crash of agentd on Solaris.

Avoid a crash of agentd on Solaris.
Replaced AF_UNIX by PF_UNIX in a couple of socket() calls.