adapt to Gradle 1.6 changes and add support for strict compile