Fix framework linking and use new variable names
Support Xcode 6.1 b1 in objc template