Fixing xcode warnings