Fix compilation errors in Objective-C mode.