fix build to work with gradle 2.0.