Explicitely add lpthread LDFLAGS for submitclient.