Allow using a different Thrust library (other than the one bundled with the CUDA toolkit).

Note: Thrust 1.8 fixes the issues seen with using raw pointers