Fix compiler warning due to different boost versions