Getting things to work on windows

This is a continuation of work done by @bebac for on pull request #109