Adding support for SunOS / Solaris / illumos UNIX domain sockets.

Tested this on SmartOS version joyent_20140221T042147Z.

Everything appears to work, including `afunix:get_peercred/1` and `afunix:get_peerpid/1` which these changes most affect.