Updated build to use groovy 2.3.6, and fixed compiling errors