Fix build with older Boost versions.