Exposing C++ functions into the lua VM