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