add check for accidental DEBUG cpp defines, and a top-level pre-release code qc script