fix build to support "gradle install" to install in local repository and to generate a better classpath for "gradle eclipse"