toolchain/nasm: Backport GCC8 compatibility fix from upstream repo