changes to make it compile in Android Studio, with appcompat-v7