Make IO rework work on windows