fix compability with older gcc