add changes for compiler error using new version g++