fix autotie.t bug on win32
fix a couple more win32 issues
v0.49