Add Qt5 support.

Please help review.