Fix support for Thrust 1.6.