Improved error handling for OpenGL shaders.