Update to Gradle 2.1, add Java 8 to travis build.  Fix for linux examples build.