Initial Qt5 support

Please help review.