Fix compile for CUDA and VTK 6.

Remove VTK definitions for CUDA targets.
This fixes issues #766 and #776.