Temporary fix for Py38 build issues on macOS
ref #33239 

works around issues confirmed by @jbrockmendel and @TomAugspurger 

Ideally could fix upstream, but may not be worth the effort given the level of nuance
