added iOS version check macro