spl: Backport compatibility patches for newer kernels