[bithorded/main]Explicitly include hierarchy.
Drop use of 'uint' in favor of uint32_t.
[lib/types]Move includes from header to implementation.