Minor improvements.

Pass real GLSL version in QF_GLSL_VERSION constant.
Pass the actual number of dynamic lights as uniform.
If QF_GLSL_VERSION >= 330 use u_NumDynamicLights for the main loop condition
Fix two erroneous conditional checks
Fix some of the compilation warnings spewed by g++
Revert to const