Fix compilation with --disable-sockets