Add nl_lua_getstate to be able to build the lua sample

Untested...