Patched for newer boost versions