glsl: Emit errors or warnings when 'layout' is used with 'attribute' or 'varying'