Well-behaved Lua extensions should only need these.
Referenced from linit.c and lualib.h.
These only depend on the public API. The debug library needs more intimate knowledge of Lua internals: