build.gradle: improve classloading

Now the full runtime classpath is explored for classes.
More build.gradle improvements

Slowly getting there!