Xcode 5 fixes

An updated project and some warning fixes for Xcode 5.