Fixed deprecation warnings in ark provider and openjdk recipe