Modules are loaded by using luaL_requiref function, instead of calling directly to luaopen_blah