Add defines for static compilation and C++ lua.