Tiny portable types and endian conversion