Fix. Open libraries with luaL_openlibs.