Working Windows build

As mentioned, not sure if this is the right way of doing things, but it
builds successfully on windows.