Instead of doing #include </usr/include/machine/..>, use the headersthat ship with the kernel sources as #include "../../$host/include/$hdr",and auto-generate these ugly headers with a script.