Remove unnecessary define. Add Qt5 compatibility to qmake file.