add  --enable-unix-socket flag to configure.

Try to implement something related to #834