Dynamically check for iOS7, fixed iOS6 related crashes (#82, #81, #80)