Added g++ 4.6 support