Fixed some Xcode 6 compilation warnings / errors. Mac framework can now build as a module in Xcode 6.