added support for windows platform
Merge pull request #4 from syl20bnr/master

Small patch for windows platform