General support for the x86_64 architecture. Fixes #1970
Fixes #1435
Fixes #1237.
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082