bug-bugfix: changed boost workaround for foreach to play nicely with <1.48