X86-64 syscall numbers

This series starts implementing what I think @rocallahan was describing in his comments on #1206.  (Thanks for fixing up bustage as a result of that, btw.)  Ideally the commit messages for the individual patches should describe what's going on.
OK I guess. Though I think we should reconsider this if it becomes a burden.