Remove old, unused, and wrong glsl optimizer code
Add missing glsl preprocessor definitions

This fixes some depreciation warnings in the shader compile log for glsl versions 1.30 and up