Fixed missing getLoopbackAddress() in Java 6. Added build script.