Fix UNIX domain socket address handling to be more portable