build-aux: update compatibility patches for old versions of GCC