Added latest kivy changes and made older backends work with accommodating core changes