Improve compatibility with earlier version of Boost.