make compatible with older gcc compiler