Fix build on modern kernels