Remove cached light variables to reduce work when parsing DLs.

Also removes some duplication between GL and the inactive D3D code.
Buildfix non-windows platforms
Don't initialize lighting and lights unless they are enabled
Don't allow switching between JIT/interpreter when a game is running.
It doesn't work, anyway.
Fix typo breaking older savestates.
Move the light params to separate funcs.
Fix uniform dirtying on colortest mask.
Separate out the fog color/coef executes.
Fix a typo
Fix CRT shader
One more fix in crt.fs
Comment out a few unsafe replacement funcs.