The Lua manual mentions that the luaopen_* functions "should not be
called directly: you must call them like any other Lua C function, e.g.,
by using lua_call."
Simply call luaL_openlibs(), or if you only want a certain subset of the
standard libraries opened, see linit.c and modify it to suit your needs.