Compile debug.getmetatable().

Thanks to Karel Tuma.
Merge branch 'v2.1' into v2.1-agentzh