Add initial Qt5 support.

Add initial support for building with qt5. Please help review. Thanks!