make compatible with prev version of g++