remove win-dependent code