Fix project errors in Xcode 6