Fix compilation error with old boost version.