boost: fix build error with recent versions of glibc

This fixes building with `gcc-4.8.2` and recent `glibc`.

Original patch is at https://svn.boost.org/trac/boost/changeset/84950.