some windows fixes
Merge pull request #69 from JuliaLang/kf/win

some windows fixes