Fix compilation with latest version of Gradle