Arduino Due Wire / RTC problem

  Wire.begin(42); //standaard i2c poort

This put the Wire library in slave mode. To activate master mode you have to call the constructor without any parameters.

On the Mega the hardware doesn't know an explicit slave mode, so an initialization into slave mode allows it to act as a master too. Although that works it isn't correct.