Small windows fixes

Two very small fixes to compile on windows, using the compilers on Windows SDK 7.1.