Update project file to Xcode 4.6
Fix some analyzer warnings