tbb: enable building with non-Apple compilers

Closes #25366.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>