Adjust the Windows RTL for correct startup with packages.

inc/systemh.inc:
  + TEntryInformation: also store the reference to the resource string, resource string init and WideString init tables
win32/system.pp:
  * export the pointers to the resource string table and the resource string init table from the system unit instead of importing the record references
  - remove externals to PascalMain, ThreadvarTablesTable and asm_exit
  * initialize EntryInformation with Nils
  * Exe_entry: initialize the exported references
win/syswin.inc:
  * move the structures for the WideString init tables further up and change WStrInitTablesTable from an external record to a public pointer
  * Dll_entry: initialize the exported references
win32/sysinit.inc:
  * fill in the entry information for the resource string table, the resource string init table and the wide string init table
objpas/objpas.pp:
  * change the resource string table and resource string init table to correctly import the pointers provided by the system unit (only on systems with indirect entry information (only Win32 currently) for now)

git-svn-id: http://svn.freepascal.org/svn/fpc/branches/svenbarth@28857 3ad0048d-3df7-0310-abae-a5850022a9f2
Changed a leftover AB_PRIVATE_EXTERN back to AB_GLOBAL

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