Fix compilation errors for kernel versions >3.8.