Re #10031. Make it work with older versions of boost.