Don't install the Java shmem tools if we aren't building Java support.

Thanks to Paul Hargrove for finding this.

@jsquyres take a gander at this one.