Fixed missing #if TARGET_OS_MAC && !TARGET_OS_IPHONE