Fixed some problem with the ios and osx xcode projects.