libpayload: Don't sneak in compiler includes

The way we got to include the compiler includes was kind of whacky.
Instead of mixing in potentially problematic headers, make libpayload
self-contained by adding some missing header files. Also clean up
conflicting definitions of size_t throughout the tree.

Signed-off-by: Stefan Reinauer <>

Change-Id: I0ad1194de1a00b7133c5477c00eb167d63a2ee85
Reviewed-by: Ronald G. Minnich <>
Commit-Queue: Stefan Reinauer <>
Tested-by: Stefan Reinauer <>
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <>
6 files changed