Towards gcc-4.4 compilable version

Remove lambdas and iterator for.
Remove all C++ features not supported in gcc-4.4
allow things to build in gcc44

People still want their RedHat 5, unfortunately.