Fix XCode compiler issues.