nvidia-legacy: fix build on 3.10 kernel

fixed build errors on 3.10 kernel, thanks to vpeter
Merge pull request #2444 from chewitt/nvidia-legacy-3.10-build

nvidia-legacy: fix build on 3.10 kernel