Now link with dthread obj files instead of shared object.