Working Windows build

As mentioned, not sure if this is the right way of doing things, but it
builds successfully on windows.
Merge pull request #1 from Whizy/master

Working Windows build