Fix tests on platforms that statically-link boost.