Do not let LDFLAGS= override the dependency on libsocket