Fix compatibility with older Boost versions