Some methods are not available on Mac OS X yet, wrap them into TARGET_OS_IPHONE macro.