nvcc compatibility fixes