as far as possible. Some functions are internal to libc and no public
header are available.
Instead of checking the target platform in the mk file use the common
pattern of providing a mk file for each platform.
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.