mesa: replace GLenum target with gl_shader_stage in NewProgram