Fixes to make scene::prog flags work to build conditional program text.