Add support for GCC 4.6 (C++0x, ubuntu 12.04)

I don't use complete c++11, so we could switch to c++0x if it supported.