Fix for nvcc, see https://svn.boost.org/trac/boost/ticket/9392