Add stdint.h
Add endianness.h
Use standard fixed-width integer types in a few appropriate places
Factor some more definitions out of usb_util.h