Compiling with CUDA 5.0 on ArchLinux. had to make some changes