Fix build with Qt5
Merge pull request #257 from circlingthesun/master

Fix build with Qt5