Fix library path for Java make check on Linux.