fix compiling error when not using lua