glGetShaderiv is an OpenGL 2.0 function.
The glext.h on that page supports up to version 1.5 and glGetShader was not in the GL_ARB_shader_objects spec.
// Program linked?
glGetObjectParameterivARB(program, GL_OBJECT_LINK_STATUS_ARB, &linked);
// Read info log in either case:
glGetObjectParameterivARB(object, GL_OBJECT_INFO_LOG_LENGTH_ARB, &maxLength);
// malloc infoLog here. This call fill it:
glGetInfoLogARB(object, maxLength, &length, infoLog);