added support for unix datagrams. Fixes #2