Mauritanian terrorist linked to al-Qaeda gets 5-year jail term