fixes according to https://svn.boost.org/trac/boost/ticket/6631