Fix compilation with Qt 4.6 (issue #470)
and fix typo in comments