Compatible with old version of boost.