Use more strict compiler flags and fix compiler warnings
Lua engine refactoring
Remove old lua files