Fix some warnings

- Fix warnings due to Lua wrapper generator
- Fix missing return values in some methods
- Remove unreferenced variables
- Fix call to trackPhysicsChild
Merge pull request #210 from speps/master

Fixed some warnings