mn10300: only add -mmem-funcs to KBUILD_CFLAGS if gcc supports it