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 check Windows compatibility before merging?