Make prog g++ 4.6 compatible