Fixes #1438
This typically is a sign that something went terribly wrong. The information may help to debug issues. Issue #1343
Fixes #1296
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