added iOS7 determination macro and function from apple