Added global function and variable support for LuaEmbedder