Fix building Obj-C code with SDK >= 10.6.