Fixes for OSX ex_prim_shader.