wrap int8_t and int16_t with #ifdef to avoid possible clashes