Don't force verbose logging except on console.
Fixups for cg2glsl.
Only use rarch_get_environment() on console.
Updates and fixes for cg2glsl.