ENH: fixed nvcc compilation errors