g++4.7 issues fixed