build: Detecting if UNIX socket is available and disabling it if it is not

Change-Id: Iacdffe36223c085136a4fe09587ce304a3029853