Fix test failure on windows

This patch ensures that the multiple extern definitions of `free` in the
run-pass tests have the same declaration, working around #7352.