Tune and upgrade libraries versions