build: fix menuconfig submenu sorting for gcc options