Add compatiability with Thrust 1.7.0