Fix build with --coretext on older OS X

`TARGET_OS_IPHONE` is defined on all platforms, but its value can be 1 or 0.

I have Mac OS X 10.6, which doesn’t support including CoreText and CoreGraphics headers directly. I don’t know firsthand whether new versions support that, but I trust the comment in #34 that says they do.