fixed CMake installing + added LuaJIT support (with -DUSE_LUAJIT=ON). Will do Lua52 support later.
fixed GCC-4.7 warnings.
some more CMake work