1) Fixed memory leak
2) Fixed Unable to compile in D2009 (Introduced IPkgSysDelegate<T> Intf)