Fix build with Boost < 1.52