Fix detection of Qt5.
Fix configure message printing order.