WIP: Restore Qt4 and enable option to build against Qt5

Change-Id: If3cb97ff798b22a5fb4e89c0be948ca6b65ee1d1