Fixed some warnings

I fixed some important warnings :

- Fix warnings due to Lua wrapper generator
- Fix missing return values in some methods
- Remove unreferenced variables
- Fix call to trackPhysicsChild

One file looks a bit messed up because I didn't set the correct line ending settings in my editor. The diff was to remove unreferenced variables from WndProc.