Updated gradle build for compatiblity