Backport changes to work with GCC-4.6 and GCC 4.7. Haven't tested XML validity or pygccxml compatibility, but have got all ctests to pass with all versions, by removing c++11 tests when compiling with GCC 4.6