nvidia-legacy: fix build on 3.10 kernel

fixed build errors on 3.10 kernel, thanks to vpeter