Fix windows build.

Related to  #102 although integration tests still fail on windows due to funny file format issues.