Increase compatibility between gradle versions. Thanks to @michel-kraemer for this.