fix crash on < iOS 7 and remove that annoying warning

Merge this pull request and kill two birds with one stone ;)