build: fix build error on windows.
test: fix tfingerprint testscript failure on windows