fixed OpenGL dependencies in xcode6/ios8