* Move Qt4 configure flags to variable.
* Fix options for static and shared build.
Static Qt5 build now only with "-opengl desktop"