fixes to work on windows
Merge pull request #1 from deepak1556/win_patch

fixes to work on windows