m4/check_java_version.m4: Only use one libdir, if shared object found in multiple directories.
travis: Install java for travis