tests: fix linking test-char on win32