x86/build: Fix detection of GCC -mpreferred-stack-boundary support