Fix compile on XCode.