Fixed dthread dependency.