Fixes to get gradle plugin built.