Fix boost compilation issue with glibc 2.18