Fix the vertex shader for ex_prim_shader on OSX.

Also improve the diagnostic messages when the shaders fail to compile.