added Hartmuts KeDetachProcess(); and attach patch for GCC.