Windows build - Use wide char path functions and fix for returning stack value
Windows build - Use wide char path functions and fix for returning stack value

`unittest.exe test` runs successfully now.

marcobambini/gravity,marcobambini/gravity,marcobambini/gravity