support lua5.2 on mingw