First windows build

preliminary changes to get code working on windows