fix syslog in 2.6

socktype is only supported in 2,7 and sup.

fix #541