Fixing #include for older Boost versions
(cherry picked from commit 5ee83f9d55d5fa9ac1153bf7addc001388a3ccd4)