Dropped ios 5 and fixed warnings

Similar to pull 247 (changed deployment target to 6.0, fixed deprecation warnings), but also fixed most of the warnings related to format strings, integer conversions, and the like.