g++ 4.6 compability