Adapt abicheck.cc to deal with newer GCC version

We need to adapt our abicheck.cc to work as it is supposed to with GCC 9.