Half hearted attempt at handling both boost_thread and boost_thread-mt.