LuaOpengl: better detect if a few funcs are available