Only hook tasks onto compileJava if their inputs are specified. Changed destination-dir to be inside build/ for tasks. This fixes #10.