kernel: Fix the rest of the build errors (warnings treated as errors)