[C++] fix for lua5.2