Fixes a bunch of 16-bit issues that the C5X compiler warns about
25 files changed