fix windows implementation. close #2 #6 #7
Merge pull request #8 from cyberdelia/windows

fix windows implementation. close #2 #6 #7