add cabal sandbox to gitignore
remove dependency on unix when building on windows

Even when using Cygwin, sockets used would still be the Windows Sockets,
which are appearently non-bsd compatible, and in particular, do not send
SIGPIPE upon writing to closed socket.
clean up trailing whitespace