Setup on windows

Updated to allow setup on a windows box.
Yeah I agree with this, if you can get these changes added to this pull request, I'll merge it in.