Add initial Qt5 support.

Please help test and review.