Added support for using curl in addition to wget. Added support for compiling
as non-root, and installing later as root w/o sudo. Added GNU Make check.
Made all downloads and urls vars at top of script. Added usage.
Allow cancelling downloads, or using exiting downloaded files (offline).
Allow setting any install prefix. Auto-detect if on 64bit OS.
Better handling of various errors.
This is beneficial because 3.4 is broken under Java 8. It appears that
the C library didn't change in 3.5 so the 3.4 tarball is still used
for that part.