than praying that globals end up in the lower 32-bit address space. Add a number of missing includes, missing prototypes, etc.