Fix test on visualCpp, where compiling always forces re-linking