compiler fixes for iOS8