replace BITS_PER_UNIT with __CHAR_BIT__ in target libs