build mirall 1.7 branch

The scripts are adapted so the 1.7 branch can be build with it.