fix grub segfaults on hosts where gcc is built with stack smashing protection