Added compatibility with older versions of Boost