Add qtsupport with Qt5 and Qt4

Reimplement example from V0.9.4.
Build using fPIC for Qt5