compile fixes - would not compile otherwise with ubuntu 12.10

what distribution was used to build these?  tried 4.7.2 in ubuntu 12.10 (standard) and centos6.4 (from devtools-1.1 / http://people.centos.org/tru/devtools-1.1/) and could not compile without these fixes.

also, from what i saw i fear making a build machine for centos will be messy with the requirement of c++11 and these newer g++s.