Replace all define constants in .cpp files with static const
Change some uint32_t -> Uint32, because that's our dominant style
Change a couple of types to avoid signed comparison warnings
Merge branch 'fix-constants-style'