LuaCppInteface won't compile with the current Lua version unless LUA_COMPAT_APIINTCASTS is defined. If your wrapper relies on this functionality to be present, it should probably also define it (or it should be rewritten to not rely on deprecated APIs).