use C99 fixed width types

probably would be better to go through and eliminate UINT2 and UINT4 in favor of uint16_t and uint32_t but this will do for now.