Casts and type changes to fix portability issues.- int -> size_t- adjust width of RHS of shift- adjust widths of types
branches: 1.2.6;ansify function definitions
branches: 1.1.36;Merge libkern + libc common files. As requested by core.
Sync with HEAD.Commit is split, to avoid a "too many arguments" protocol error.
sync with head