Fix compile-link test with OSX