adding #ifdef __clang__ to unsigned short multiplies bug workaround