build Lua with CMake for different platforms