Fix tests on win64

These commits fix all tests and installation utilities on win64. I've confirmed that these are a green build on the bots.
Sounds good. (I also didn't realise until now this was just for setting up travis; if it were the user-facing installation script it would be a different story.)