Strange errors after system gcc upgraded to 13.1.1

Engineering is testing a work around for the type_traits issue which hopefully can be added to 23.5. No guarantees that other issue wont occur, but it should work around this one (assuming it makes it in the final release).