Update core.mk

define fix warning flags invalid for C.
i.e warning: command line option '-std=gnu++11' is valid for C++/ObjC++ but not for C .