add more null checking and upgrade to xcode 5
Merge branch 'master' of https://github.com/petetak/QuickCast