Fixed Kernel compilation errors.