Fix some compat in cg2glsl.
More compat fixes for cg2glsl.

Motion-blur shader works.