Remove boost_thread dependency for dynamically linked builds (RIPD-216).