fixing compilation on CUDA