Made compatable with qt5, should still work with qt4. Followed http://ww...

It threw an error, so I followed [these](http://www.qtcentre.org/threads/53452-QtGui-QApplication-No-such-file-or-directorty) instructions. I don't have the expertise to know whether or not this is an appropriate solution.