Update gitignore for Qt Creator.
Fix compiler warnings and Qt 4.x issue.
Add some helper classes for 3D maths.