Initial work towards Win64 compilation.

This is nowhere near building, let alone working, but we'll get there
eventually.