fix GCC version selection for Magicbox