Update versions of magma and commons