Shaders: fix some GLES compatibility issues