optimizations for the windows build
Merge pull request #3 from fr500/master

optimizations for the windows build