DUE Watchdog usage

Thanks for this, i've created a diff file to apply these changes easy.
But somehow I get a warning if I compile a sketch without the WDT_Initialze function...

variant.cpp.o: In function `init':
C:\Program Files (x86)\Arduino\arduino-1.5.7\hardware\arduino\sam\variants\arduino_due_x/variant.cpp:378: warning: undefined reference to `WDT_Initialze'
--- arduino-1.5.8\hardware\arduino\sam\system\libsam\include\wdt.h	Thu Jan 8 17:33:06 2015 UTC
+++ arduino-1.5.8\hardware\arduino\sam\system\libsam\include\wdt.h	Thu Jan 8 17:33:06 2015 UTC
@@ -66,6 +66,8 @@
 
 extern uint32_t WDT_GetPeriod( uint32_t dwMs ) ;
 
+void WDT_Initialze();
+
 #ifdef __cplusplus
 }
 #endif
--- arduino-1.5.8\hardware\arduino\sam\system\libsam\source\wdt.c	Thu Jan 8 17:33:09 2015 UTC
+++ arduino-1.5.8\hardware\arduino\sam\system\libsam\source\wdt.c	Thu Jan 8 17:33:09 2015 UTC
@@ -130,3 +130,13 @@
     }
     return ((dwMs << 8) / 1000) ;
 }
+
+/**
+* \brief default arduino behaviour -> disable the watchdog.
+* watchdog can be enabled from a sketch
+*/
+#pragma weak WDT_Initialze
+void WDT_Initialze()
+{
+ WDT_Disable(WDT);
+}
--- arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x\variant.cpp	Thu Jan 8 17:33:14 2015 UTC
+++ arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x\variant.cpp	Thu Jan 8 17:33:14 2015 UTC
@@ -374,7 +374,8 @@
   }
 
   // Disable watchdog
-  WDT_Disable(WDT);
+  // WDT_Disable(WDT);
+  WDT_Initialze(); // instead of the line above to allow enabling the watchdog from a sketch
 
   // Initialize C library
   __libc_init_array();