Fix register warning from BOOST.