Fixed compiling on iOS 6 minimum