add functions to add C++ methods to a meta table