fix a logic error in Lua51ScriptingEngine::OpenLibraries where it always opened all the libraries