more robust build script (regarding cccc)