Removing some warnings

Using more idiomatic C++ in some cases

Some warnings left, which have to do with Lua and Irrlicht interaction.