Add dependencies on apt-get upgrade and fix issues with mysql