fix truncate compile error in ninja_test on windows

affects 1.3.0, maybe just retag?