Fix for compilation without Cuda
Fix for bug detected by Ben Champion
(http://public.kitware.com/pipermail/rtk-users/2014-February/000199.html)