Checking if TARGET_OS_IPHONE is defined isn't good enough for 10.7 and earlier.