Fix compile errors uncovered by MinGW64 compilation.