fix build with iOS 6 SDK