windows fix in setup only runs on windows #828