This whole thing needs to be reworked but for now at least don't cause a compile error when building for a target that doesn't have stderr or detectTTYConfig.
This whole thing needs to be reworked but for now at least don't cause a compile error when building for a target that doesn't have stderr or detectTTYConfig.