Adapt kernel lib for the changes in the kernel