Adding back gen-x86.h.
Working on x64 codegen. Compiles and links, but likely won't work.
x64 codegen works! Though the apply stuff has to go.