[nvidia-304xx-kmod] updated patch for 4.12 kernel; added ifdefs to work with older kernels