making java dependency conditional on os