Added Qt5 compatibility.
Merge pull request #7 from saschazelzer/qt5

Added Qt5 compatibility.