Apply patch from https://svn.boost.org/trac/boost/ticket/9410