gnat: make it build again (close #5307)

Problems are worked around by using older gcc wrapper for gnat bootstrap.
(from ca441636f1^)

I tried nicer solutions first, but I was unable to fix all problems for hours.

(cherry picked from commit 1a0a1619206f4a25d724bf04027980b45b15b16e)