Fix boost compilation issue with glibc 2.18

this fix issue 153 https://github.com/Valloric/YouCompleteMe/issues/513.
patch taken from boost upstream https://svn.boost.org/trac/boost/changeset/84950