Stole a better Lua CMake file from https://github.com/LuaDist/lua