What Do I Do About Errors Trying to Compile the Kernel?
See the previous question regarding the header files.
Remember that when you apply a patch to the kernel, you must use the -p0 or -p1 option: otherwise, the patch may be misapplied. See the patch manual page for details.