Improve boost_thread linking for integration tests.  Fix --with-integration-tests configure option.