Compile with CUDA 4.x and fix a warning