[arch][x86] spiff up the x86 linker script to be a little more correct

Mostly synced it with the arm one.
[arch][x86] add inline versions of the simple atomic ops
[scripts][do-qemux86] build and run qemu-system-i386