Fix compilation on boost<1.51