bug 747540: fix dependencies for java build