Reorganization, structuring, and preparation for CMake build system.