Merge pull request #573 from sgraham/truncate-win

fix truncate compile error in ninja_test on windows