Add frame_count_mod to XML and Cg shaders.

Allows frame count shaders to avoid floating point inaccuracies
when frame count gets large. Avoids having to mod manually in shader.