Compile to java 1.6

Some collegues here are still on 1.6.  Also fixed bugs in the lqt
wrapper script when invoked from other dirs.