fix lua related compiling errors on windows