Initial Qt5 support.

Please help review and test.