Fix Windows build.

well that entire code path needs to be checked and at the moment doesn't compile.