fix test_static_link