Tweaks to get java gem building.