Made console output more informative.
Qt5 compatibility changes.