Use -boundingRectWithSize:options:attributes:context: and -drawWithRect:options:attributes:context: when they are available. Fixes line number issue under iOS 7 with 64-bit.