allow MacOS to build without java dependencies