Reorganization and cleanup of allocore build system