gcc: fix version selection for Magicbox