Ab-initio long-wavelenght properties of metallic systems : iron and magnesium