There is a deep connection between the factors driving young Algerians into the streets and onto migrant boats.