when crosscompiling, link tests with static runtime to make wine happy