Reorganization for adding cmake.
Minimal CMake build system.