Fix compilation

pkgutil.pas:
  * export_unit: forgot loop variable

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28855 3ad0048d-3df7-0310-abae-a5850022a9f2
Also add the initialization/finalization sections and the class constructors/destructors to the imported symbols of the current program/library.

ngenutil.pas, tnodeutils.InsertInitFinalTable:
  + new function add_initfinal_import to find the procsym for the initialization/finalization code and to add it to the imported unit symbols
  * write_struct_inits: import the found class constructor/destructor symbols if they are not in the program/library unit
  * use add_initfinal_import for the initialization and finalization sections of all used units beside the program/library unit

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28856 3ad0048d-3df7-0310-abae-a5850022a9f2