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