Fix error when shader can't link

Calling glValidateProgram clears glGetProgramInfoLog, so must check for
link error before validating.
Merge pull request #995 from SpexGuy/SteamEngine

Fix error when shader can't link