Change the payload to boost::uint32_t instead of size_t (reason: size_t have not a standardized size).
Add the buffer_size(BufferSequence) function for Boost version lower than 1.47.