fixed one (of many) compatiabilty issues with older c++ compilers