fixing various xcode 5.1 warnings