Changed the example projects to work with latest Xcode and osx

Changed the example projects to work with latest Xcode and osx