Link GLEW before OpenGL. Maybe that would help Mac?