Fix to build on iOS 8 Beta 5