fix type mess by using stdint.h types

there was a plethora of uint, uchar, ushort etc macros used,
which caused build issues in a number of cases, for example when
compiling against musl libc.
i'm removing these defines because all occurences of uint8 are replaced with the proper usage of uint*_t from stdint.h