change to work with older version of g++