SourceContext fixes in the IO code in static/extern