Flatten dependencies with CommonToolbox. Removed old build method.