Apply fix from https://svn.boost.org/trac/boost/ticket/9884