Fix builds with boost < v1.5.