Add GtThread support.