Fix scope on buildscript dependency

The `compile` method can't be applied because that is added by `java`/`groovy`/`scala` etc. plugins. Since the `buildscript` block is evaluated first, that will cause a build error.