Replace the mknod() call with socket() + bind() for creating unix
sockets. The mknod() method is not portable and does not work
on NetBSD while binding the socket should work on all systems supporting
unix sockets.
// NB: I think this should solve the issues w/ FreeBSD/Darwin too but I don't have those systems to test