Fix compilation with boost versions under 1.50