This centralizes the conditional imports and makes a home for the IoSafe trait annotation for smol/async-io compat.