Fixing compilation problem with shader, adding log output if error occurs during link phase

On my windows box, attempting to run the code without these changes results in an error that not all control paths return a value for the directionToColor() GLSL function