Enhancements to the cmake template.
Added install target.
Search for apple libraries in the cmake template.
Better support for lua.
Do not randomize hash tables in lua.