Added macro to check for iOS  7