Changed build to make the JDK5 check optional
Added configuration for Travis CI job