Switched back to using plain C for LUA
Many CMake changes for better builds