Fixed a lot of compiler issues from Xcode 5.1 and arm64 architecture. Of particular note is a new build warning for using %d formatter for NSUInteger and NSInteger. The safest way to deal with these seems to be to cast them into an NSNumber and use %@. See http://stackoverflow.com/a/20362087/456366