make use of Lua CFLAGS

Turns out the changes in #181 do not really take effect on non-Windows systems as EXT_FLAGS is never used in the compiler calls. Changed this to use EXP_CPPFLAGS instead which is used. This prevents some Lua-related compiler warnings on newer gccs.

@gordon, could you please check Windows compatibility before merging?