make code compiler at gcc 4.82