Fix test static link

Windows fixes to other.test_static_link.