Fix XCode warnings