Fix compilation for boost >= 1.50