Addresses various SDK changes that happened between 4.1 and 4.3 as well as changes to the Gradle build system from 0.7->0.9