java/java3d: Various fixes
- Add dependency on libX11 and libXext.
- Replace ${SETENV} with ${SETENVI} ${WRK_ENV} to build with a clean environment.
- Install the library with ${INSTALL_LIB} so it is stripped.
- Link with C compiler because ld doesn't always search /usr/lib.
Reported by: vvd