Fix for CUDA build