Adapt to new kernel version