Add fixes for building for Due with gcc-arm-embedded.