Fix most compiler warnings.
minor changes to the Xcode project files.