Fix gcc 4.7 and add a newer boost.