kernel: make the kernel 3.18 patches apply and boot on arm.