ch2: prepare for x64 arch

Separate arch-dep files, flags.
ch2: add x86_64 support

Files are modified from Mini-OS.