you know, Due is different from Arduino.chip , hardware , software,they are not the same.So you need modify your libraries.