Use stream/dgram autodection on /dev/log for syslog-ng compat

Patch from
https://raw.github.com/gentoo-haskell/gentoo-haskell/master/dev-haskell/hslogger/files/hslogger-1.2.1-dev-log-rdetect.patch

Patch comments:

"Detect "/dev/log" socket type (Stream / Dgram) at runtime
as it does openlog from glibc.

Patch based on report by George Diamantopoulos:

https://groups.google.com/forum/#!topic/ganeti/xnj-WctN7HY/discussion

Original bug report

https://github.com/jgoerzen/hslogger/issues/1

Reported-by: George Diamantopoulos
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>"

Fixes #1
Bring ability to use custom formatter with syslog

Closes #20

Conflicts:
	.gitignore
Fix compile errors on network <= 2.3
Bump version

Conflicts:
	hslogger.cabal
Relax network upper bound