The changes mostly revolve around:
- Type changes and casts to make the picky C-compiler happy
- Fixed bug in XmxExtractToken where it would not zero out bits 16-31 on a non-32-bit system
- Added back old getline implementation as its missing on UNICOS
- Added some missing typedefs and conditional directives to turn on the relevant code pieces for UNICOS