Fix warnings when deployment target is iOS 6.