toward windows
merge windows port from git-annex
now build and works on Windows